package DesignPattern.Structure.Adapter.ObjectAdapter;

import DesignPattern.Structure.Adapter.ClassAdapter.TFCardImpl;
import Utils.Util;

public class Client {
    public static void main(String[] args) {
        Computer computer = new Computer();
        String msg = computer.readSD(new SDCardImpl());
        System.out.println(msg);

        Util.divide();
        // 符合合成复用原则
        String msg1 = computer.readSD(new SDAdapterTF(new TFCardImpl()));
        System.out.println(msg1);
    }
}
